import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/admin/login',
    method: 'post',
    data
  })
}
// 获取用户信息
export function getInfo(token) {
  return request({
    url: '/admin/info',
    method: 'get',
    //params: { token }
  })
}
// 退出登录
export function logout() {
  return request({
    url: '/admin/singout',
    method: 'get'
  })
}
